
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
    <meta name="format-detection" content="telephone=no" />
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <meta http-equiv="Expires" content="no-cache" />
    #parse("/h5/common/webWords.html")
    <link rel="stylesheet" type="text/css" href="http://${staticHost}/css/stcss.css" />
    <link rel="stylesheet" type="text/css" href="http://${staticHost}/css/page.css" />
    <!--  <title>查看成绩</title>-->
    <script type="text/javascript" src="http://${staticHost}/js/jquery.js"></script>
    <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
    <script src="http://${staticHost}/js/layer.js"></script>
    <script type="text/javascript">
        function noLibrary() {
            alert("未添加试题，请等待老师配置后再操作。");
        }
        function showMessage(msg){
            layer.open({
                content: msg
                ,btn: '关闭'
            });
        }

        function loginOut(){
            $.ajax({
                type:'post',
                url:'/edu/auth/loginOut',
                contentType:'application/x-www-form-urlencoded; charset=utf-8',
                success: function (result) {
                    showMessage("您已安全退出梦想在线教育服务系统");
                    window.location.href='/';
                }
            });
        }
    </script>
    <style type="text/css">
        .editMood{
            color: #333;
        }
        .kc_nav li a{width: 24%;margin: 5px 0%;}
        table {
            width: 100%;
            border: .1rem solid #cccccc;
            margin-bottom: 1rem;
        }

        table td {
            height: 2rem;
            font-size: 1.2rem;
            border: .1rem solid #cccccc;
            line-height: 2rem;
        }

        .content {
            padding-bottom: 1rem;
        }

        .global_section .content {
            margin: 0 auto;
            text-align: center;
        }

    </style>
</head>
<body>
    <div class="dlny clear">
        <dl>
            <dt><a href="/edu/auth/toEditHeadprotrait"><img src="${headPortrait}"></a></dt>
            <dd>
                [${studentName}] <a href="/edu/auth/toEditStudentInfo" class="editMood">${mood}</a>
            </dd>
        </dl>
    </div>
    <div class="kc_nav clear" style="border-bottom: .5rem solid #e6e6e6;">
        <ul>
            <li>
                <a href="/curriculum/auth/courseOnLine"><img src="http://${staticHost}/images/jf01.png"><span>听课学习</span></a>
                <a href="/hw/auth/hwIndex"><img src="http://${staticHost}/images/by01.png"><span>去做作业</span></a>
                <a href="/exam/auth/examIndex"><img src="http://${staticHost}/images/bzr01.png"><span>我要考试</span></a>
                <a href="javascript:void(0)"><img src="http://${staticHost}/images/ckcj.png"><span>查看成绩</span></a>
            </li>
        </ul>
    </div>
    #set($semesterId = 1)
    #set($semesterIds = 1)
    #foreach($form in $!courseList)
    #if($semesterId != $form.id)
    <section class="global_section">
        <span class="title">$form.semesterName</span>
        <div class="content">
    #end
            <table cellspacing="0" cellpadding="0">
                <tr>
                    <td colspan="5">
                        $!form.courseShowName
                    </td>
                </tr>
                <tr>
                    <td>在线听课</td>
                    <td>下载资料</td>
                    <td>作业</td>
                    <td>考试</td>
                    <td>总分</td>
                </tr>
                <tr>
                    <td>
                        #if($!form.videoRatio > 0)
                        $!form.videoScore
                        #end
                    </td>
                    <td>
                        #if($!form.materRatio > 0)
                        $!form.materScore
                        #end
                    </td>
                    <td>
                        #if($!form.hwRatio > 0)
                        $!form.hwScore
                        #end
                    </td>
                    <td>
                        #if($!form.examRatio > 0)
                        $!form.examScore
                        #end
                    </td>
                    <td rowspan="2">
                        #if($!form.videoRatio > 0 || $!form.materRatio > 0 || $!form.hwRatio > 0 || $!form.examRatio > 0)
                        $!form.totalScore
                        #end
                    </td>
                </tr>
                <tr>
                    <td>
                        #if($!form.videoRatio > 0)
                        #if($!form.videoStatus == 2)
                           #if((($!endTerm && $!endTerm==1) ||  ($!form.exceedTerm && $!form.exceedTerm == 1))  &&  $!form.tScore < 60 && $!form.vScore < 100)
                            <a href="/video/auth/video?courseId=$form.courseId&courseName=$form.courseShowName&semesterId=$form.id&exceedTerm=1">补学</a>
                           #else
                            完成
                           #end
                        #else
                            <a href="/video/auth/video?courseId=$form.courseId&courseName=$form.courseShowName&semesterId=$form.id&exceedTerm=0">补学</a>
                        #end
                        #end
                        </td>
                    <td>
                        #if($!form.materRatio > 0)
                        #if($!form.materStatus == 2)
                           #if((($!endTerm && $!endTerm==1) ||  ($!form.exceedTerm && $!form.exceedTerm == 1))  &&  $!form.tScore < 60 && $!form.mScore < 100)
                             <a href="/video/auth/video?courseId=$form.courseId&courseName=$form.courseShowName&semesterId=$form.id&exceedTerm=1">补学</a>
                           #else
                             完成
                           #end
                        #else
                              <a href="/video/auth/video?courseId=$form.courseId&courseName=$form.courseShowName&semesterId=$form.id&exceedTerm=0">补学</a>
                        #end
                        #end
                    </td>
                    </td>
                    <td>
                        #if($!form.hwRatio > 0)
                        #if($!form.hwStatus == 2)
                            #if( (($!endTerm && $!endTerm==1) ||  ($!form.exceedTerm && $!form.exceedTerm == 1)) && $!form.tScore < 60 && $!form.hScore < 100)
                             <a href='/hw/auth/hwDetail?courseId=$!form.courseId&semesterId=$!form.id&courseName=$!form.courseShowName&exceedTerm=1'>补做</a>
                            #else
                                完成
                            #end
                        #else
                            #if($!form.hwRelation > 0)
                            #if((($!endTerm && $!endTerm==1) ||  ($!form.exceedTerm && $!form.exceedTerm == 1))  && $!form.tScore < 60 && $!form.hScore < 100)
                             <a href='/hw/auth/hwDetail?courseId=$!form.courseId&semesterId=$!form.id&courseName=$!form.courseShowName&hwStatus=$!form.hwStatus&exceedTerm=1'>补做</a>
                            #else
                             <a href='/hw/auth/hwDetail?courseId=$!form.courseId&semesterId=$!form.id&courseName=$!form.courseShowName&hwStatus=$!form.hwStatus&exceedTerm=0'>未完成</a>
                            #end
                            #else
                            <a href='#' onclick="noLibrary()">未关联</a>
                            #end
                        #end
                        #end
                    </td>
                    </td>
                    <td>
                        #if($!form.examRatio > 0)
                        #if($!form.examStatus == 2)
                            #if($(($!endTerm && $!endTerm==1) ||  ($!form.exceedTerm && $!form.exceedTerm == 1)) && $!form.tScore < 60 && $!form.eScore < 100)
                               <a href='/exam/auth/examDetail?courseId=$!form.courseId&semesterId=$!form.id&courseName=$!form.courseShowName&exceedTerm=1'>补考</a>
                            #else
                                完成
                            #end
                        #else
                            #if($!form.examRelation > 0)
                            #if((($!endTerm && $!endTerm==1) ||  ($!form.exceedTerm && $!form.exceedTerm == 1))  && $!form.tScore < 60 && $!form.eScore < 100)
                            <a href='/exam/auth/examDetail?courseId=$!form.courseId&semesterId=$!form.id&courseName=$!form.courseShowName&examStatus=$!form.examStatus&exceedTerm=1'>补考</a>
                            #else
                            <a href='/exam/auth/examDetail?courseId=$!form.courseId&semesterId=$!form.id&courseName=$!form.courseShowName&examStatus=$!form.examStatus&exceedTerm=0'>未完成</a>
                            #end
                            #else
                            <a href='#' onclick="noLibrary()">未关联</a>
                            #end
                        #end
                        #end
                    </td>
                    </td>
                </tr>
            </table>
         #set($semesterIds = $form.id)
         #if($semesterId != $form.id && $semesterIds == $semesterId)
        </div>
    </section>
    #end
    #set($semesterId = $form.id)
    #end
    <div class="holderdiv"></div>
    <!--底部 begin -->
    <div class="fixdiv">
        <ul>
            <li><a href="javascript:void(0)" onclick="window.history.go(-1)"><img src="http://${staticHost}/images/foticon001.jpg"><span>返回</span></a></li>
            <li><a href="/edu/auth/modifyPwd"><img src="http://${staticHost}/images/foticon004.jpg"><span>重置密码</span></a></li>
            <li><a href="javascript:void(0)" onclick="loginOut()"><img src="http://${staticHost}/images/foticon003.jpg"><span>退出系统</span></a></li>
        </ul>
    </div>
    <!-- 底部 end -->
</body>
</html>
